package pack0815;

public class DemoA {
    int age;
    char sex;;
    String name;
    double hig;
    double kg;
    public DemoA(int age,char sex,String name,double hig,double kg){
        this.age = age;
        this.hig = hig;
        this.name = name;
        this.sex = sex;
        this.kg = kg;
    }

    public void xinXi(){
        System.out.println("姓名："+name);
        System.out.println("性别："+sex);
        System.out.println("年龄："+age);
        System.out.println("身高："+hig+"cm");
        System.out.println("体重："+kg+"kg");
        System.out.println();
    }
    public static void main(String[] args) {
        DemoA ba = new DemoA(25,'男',"dzf",256,100);
        ba.xinXi();
        DemoA baa = new DemoA(26,'女',"dml",224,97);
        baa.xinXi();
    }
}
